package ooday04exercise;

/**
 * 匿名内部类
 */
public class AnonInnerClassDemo01 {
    public static void main(String[] args) {
      Coo c1= new Coo(){};
     Doo d4= new Doo(){
          @Override
          void show() {
              System.out.println("showshow d4");
          }
      };
     d4.show();

    }

}
class Coo{

}
abstract class Doo{
    abstract void show();
}

